package com.cafuc.discipline.dao;

import com.cafuc.discipline.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface UserDao {
    public User selectTest(int id);
    /*新增登录日志*/
    public Boolean insertLoginLog(HashMap<String,Object> params);
    //  通过邮箱查询用户
    public User selectUserByEmail(String email);
    //  通过id查询用户
    public User selectUserById(String email);
    //新增用户
    public Boolean insertNewUser(HashMap<String,Object> params);
    //获取用户列表
    public List<User> selectUserList(HashMap<String,Object> params);
    //获取用户总数
    public int selectUserTotal();

    public List<User> queryUser(HashMap<String,Object> params);
    //获取查询用户总数
    public int queryUserTotal(HashMap<String,Object> params);

    public Boolean deleteUser(String id);
    /*查询登录日志*/
    public List<HashMap<String,Object>> selectUserLog(String user_id);
}
